﻿using System;
using System.Collections.Generic;
using System.Text;
using MongoDB.Bson.Serialization.Attributes;
using System.Xml.Serialization;
using System.ComponentModel;
using MongoDB.Bson;
using Jack.DataScience.Data.MongoDB;

namespace Vav.Data.Payment
{

    public enum PaymentStatusEnum
    {
        WaitingForPayment,
        [Description("用户超过一定时间没有支付")]
        Timeout,
        Success,
        Cancelled,
        Failed
    }
    /// <summary>
    /// 微信统一下单参数
    /// </summary>
    public class WeChatUnifiedOrder
    {
        public string appid;
        public string body;
        public string mch_id;
        public string nonce_str;
        public string notify_url;
        public string openid;
        public string out_trade_no;
        public string spbill_create_ip;
        public int total_fee;
        public string trade_type;
        public string sign;
    }

    /// <summary>
    /// 微信API返回的结果
    /// </summary>  


    public class WeChatUnifiedOrderResponse
    {
        public string Appid { get; set; }

        public string Attach { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Bank_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Fee_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Is_subscribe { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Mch_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Nonce_str { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Openid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Out_trade_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Result_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Return_code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Sign { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Sub_mch_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Time_end { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Total_fee { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Coupon_fee_0 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Coupon_count { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Coupon_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Coupon_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Trade_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Transaction_id { get; set; }
    }
}
